﻿namespace HuaWei.DAI
{
    using System;
    using System.Data;

    public class DbParameter
    {
        private System.Data.DbType dbType;
        private int num;
        private object obj;
        private string str;

        public DbParameter()
        {
            this.num = 0;
        }

        public DbParameter(string name, object Value)
        {
            this.num = 0;
            this.str = name;
            this.obj = Value;
        }

        public DbParameter(string name, object Value, System.Data.DbType ParaType)
        {
            this.num = 0;
            this.str = name;
            this.obj = Value;
            this.DbType = ParaType;
        }

        public System.Data.DbType DbType
        {
            get
            {
                return this.dbType;
            }
            set
            {
                this.dbType = value;
            }
        }

        public string ParameterName
        {
            get
            {
                return this.str;
            }
            set
            {
                this.str = value;
            }
        }

        public int Size
        {
            get
            {
                return this.num;
            }
            set
            {
                this.num = value;
            }
        }

        public object Value
        {
            get
            {
                return this.obj;
            }
            set
            {
                this.obj = value;
            }
        }
    }
}

